package com.tmt.im.manager.mapstruct;

import com.tmt.im.common.pojo.IMFriendGroupPoJo;
import com.tmt.im.jpa.entity.IMFriendGroup;
import com.tmt.im.manager.controller.vo.FriendGroupInfoVo;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/26 20:58
 * @Version 1.0
 **/
@Component
@Mapper(componentModel = "spring")
public interface IMFriendGroupMapStruct {

    FriendGroupInfoVo toFriendGroupInfoVo(IMFriendGroup group);

    List<FriendGroupInfoVo> toFriendGroupInfoVos(List<IMFriendGroup> groups);

    FriendGroupInfoVo toFriendGroupInfoVo1(IMFriendGroupPoJo group);

    List<FriendGroupInfoVo> toFriendGroupInfoVos1(List<IMFriendGroupPoJo> groups);

}
